<?php

class Nutri_Model_News extends Nutri_Model_Abstract
{
	protected $_title;
	protected $_text;
	protected $_creationday;
 
 	public function setTitle($value)
    {
        $this->_title = $value;
        return $this;
    }
 
    public function getTitle()
    {
        return $this->_title;
    }
 	
 	public function setText($value)
    {
        $this->_text = $value;
        return $this;
    }
 
    public function getText()
    {
        return $this->_text;
    }
	
	public function setCreationday($value)
    {
        $this->_creationday = $value;
        return $this;
    }
 
    public function getCreationday()
    {
        return $this->_creationday;
    }
	
	public function toArray()
    {
        return array (
            'id' => $this->getId(),
            'title' => $this->getTitle(),
            'text' => $this->getText(),
            'creationday' => $this->getCreationday(),
        );
    }
    
 	public function getMapper()
    {
        if (null === $this->_mapper) {
            $this->setMapper('Nutri_Model_Mapper_News');
        }
        return $this->_mapper;
    }
}